package com.xinruke.hostels.manage.user.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName UserPasswordUpdateDTO
 * @CreateDate 2019/8/3
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 用户密码修改请求
 */
@ApiModel("用户密码修改请求")
@Data
public class UserPasswordUpdateDTO {
    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank(message = "旧密码")
    private String oldPwd;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码")
    private String newPwd;
}
